package com.ningxia.water.controller;

import com.ningxia.water.reuslt.Result;
import com.ningxia.water.reuslt.ResultResponse;
import com.ningxia.water.service.ITsDepartmentService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/department")
@Api(tags = "基本信息-用水管理部门")
public class DepartmentController {


    @Autowired
    private ITsDepartmentService departmentService;

    @GetMapping("/getdepartmentinfo")
    @ApiOperation("获取用水管理部门信息")
    public Result getDepartmentInfo(){
        return ResultResponse.getSuccessResult(departmentService.list());
    }
}
